package com.google.code.gaestats;

import com.googlecode.objectify.annotation.Entity;
import com.googlecode.objectify.annotation.Id;
import com.googlecode.objectify.annotation.IgnoreSave;
import com.googlecode.objectify.condition.IfDefault;
import java.util.concurrent.CopyOnWriteArrayList;
import lombok.Getter;

/**
 *
 * @author JaggardM
 */
@Entity
public class CounterNames
{

	@Id
	long id = 1;
	@IgnoreSave(IfDefault.class)
	@Getter
	private CopyOnWriteArrayList<String> names = new CopyOnWriteArrayList<String>();

	public boolean contains(String name)
	{
		if (names == null)
		{
			return false;
		}
		return names.contains(name);
	}
}
